private void GetManagers() { p = GetComponent <Player>(); pg = GetComponent <PixelGrid>(); bm = GetComponent <ButtonMash>(); gc = GetComponent <GoalCompletion>(); b = GetComponent <Bugs>(); sgm = GetComponent <StartGameMode>(); }
// Use this for initialization void Start() { buttonMash = GetComponent <ButtonMash>(); }
void Start() { buttonMash = GetComponent <ButtonMash>(); hammer = buttonMash.gameObject; originalRot = hammer.transform.rotation; }