void Awake() { // Prefab이라 EC, Combo find EC = GameObject.Find("EC"); Combo = GameObject.Find("Combo"); ec = EC.GetComponent <EventController>(); me = EC.GetComponent <MakeEnemy>(); // 움직이는 방향 Direction3d = new Vector3(0f, 0f, 0f) - transform.position; Direction = (new Vector2(Direction3d.x, Direction3d.y)).normalized; // 몬스터에 공격받아서 다른 몬스터들 미는 넉백 속도 PushVelocity = 30f; isPushing = false; }
private void Awake() { make = this; }