Exemple #1
0
 // Start is called before the first frame update
 void Start()
 {
     rigidbody          = GetComponent <Rigidbody2D>();
     downRotation       = Quaternion.Euler(0, 0, -50);
     forwardRotation    = Quaternion.Euler(0, 0, 40);
     transform.position = startPos;
     game = FlappyBirdGameManager.Instance;
     rigidbody.simulated = false;
 }
 private void Start()
 {
     game = FlappyBirdGameManager.Instance;
 }
Exemple #3
0
 private void Awake()
 {
     Instance = this;
 }