void getReferences() { manager = baseHalo.manager; style = manager.GetComponent <haloStyle>(); haloActive = baseHalo.haloActive; poly = otherObject.GetComponent <PolygonCollider2D>(); keepToMainStyle = baseHalo.keepToMainStyle; }
void Start() { // haloSwitch = GetComponent<HaloSwitch>(); // haloSwitch.setValues(player, state, manager, haloActive); player = GameObject.Find("player"); manager = GameObject.Find("EventHandeler"); style = manager.GetComponent <haloStyle>(); }