void Awake() { rb = GameObject.Find("Bunny").GetComponent <Rigidbody2D>(); zb = GameObject.Find("Zombear").GetComponent <Zombear>(); //psr = GetComponent<SpriteRenderer>(); //bunnyNormal = psr.sprite; //bcR = GameObject.Find("AreaOfEffectRight").GetComponent<BoxCollider2D>(); //bcL = GameObject.Find("AreaOfEffectLeft").GetComponent<BoxCollider2D>(); jumpingPermission = true; //aOER = GameObject.Find("AreaOfEffectRight").GetComponent<AreaOfEffect>(); //aOEL = GameObject.Find("AreaOfEffectLeft").GetComponent<AreaOfEffect>(); }
void Start() { BCAnim = GetComponent <Animator>(); arr = GetComponent <Zombear>(); }
void Start() { zAnim = GetComponent <Animator>(); teddy = GetComponent <Zombear>(); }