Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     power          = 10f;
     myLine         = gameObject.GetComponent <LineRenderer>();
     myLine.enabled = false;
     myRB           = gameObject.GetComponent <Rigidbody2D>();
     manager        = GameObject.Find("GameManager").GetComponent <PrimeManager>();
 }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     manager = GameObject.Find("GameManager").GetComponent <PrimeManager>();
 }