// Start is called before the first frame update void Start() { My_aniT = GetComponent <Animator>(); shoo = GameObject.Find("shoot").GetComponent <shoot>(); ig = GameObject.Find("inGameManager").GetComponent <InGame>(); atk = killrange.GetComponent <attackrange>(); r2d = GetComponent <Rigidbody2D>(); }
// Start is called before the first frame update void Start() { My_aniT = GetComponent <Animator>(); ig = GameObject.Find("inGameManager").GetComponent <InGame>(); atk = killrange.GetComponent <attackrange>(); r2d = GetComponent <Rigidbody2D>(); currenTime = coolingTime; }