// Use this for initialization
 void Start()
 {
     beetle   = FindObjectOfType <BeetleController>();
     times    = new float[3];
     times[0] = -3;
     times[1] = -3;
     times[2] = -3;
 }
Пример #2
0
 void Awake()
 {
     rb     = GetComponent <Rigidbody2D>();
     beetle = FindObjectOfType <BeetleController>();
 }