void Start() { actor = GetComponent <Actor>(); // currentState = State.OrbitalBeam; bossManager = GameObject.Find("BossManager").GetComponent <BossManager>(); bossManager.InitializeBox(actor); }
void Awake() { rig = GetComponent <Rigidbody>(); actor = GetComponent <Actor>(); bossManager = GameObject.Find("BossManager").GetComponent <BossManager>(); bossManager.InitializeBox(actor); }