My Unity C# Power of 2 code

public class ToThePower : MonoBehaviour

{

int power = 2;

// Start is called before the first frame update

void Start()

{

    for (int i = 0; i < 24; i++)

    {

        int result = 2 * power;

        power = result;

        Debug.Log(result);

    }

}

}

1 Like

This is so cool that you made this.

Privacy & Terms