Esempio n. 1
0
 public void SetUp(float angle, ObjectCreator objectCreatorCache, EnemyAttackKinds enemyAttackKinds, Player.PlayerController targetPlayerController)
 {
     Angle                  = angle;
     ObjectCreator          = objectCreatorCache;
     EnemyAttackKinds       = enemyAttackKinds;
     TargetPlayerController = targetPlayerController;
     // 싱글턴 변수 만들어서 싱글턴 넣기
 }
Esempio n. 2
0
        private void CreateEnemyAttackKinds()
        {
            Debug.Log("Creating attackkinds");
            var enemyAttackKinds = Instantiate(EnemyAttackKinds);
            var setup            = enemyAttackKinds.GetComponent <Enemy.EnemyAttackKinds>();

            enemyAttackKinds.transform.localPosition = Vector2.zero;
            enemyAttackKinds.transform.localRotation = Quaternion.identity;
            enemyAttackKinds.transform.localScale    = Vector2.one;

            setup.ObjectCreator   = this;
            this.enemyAttackKinds = setup;
        }