Esempio n. 1
0
        public SniperController(Vector3 nodePos, InteractableManager interactableManager, InteractableView sniperPrefab)
        {
            this.interactableManager = interactableManager;
            GameObject sniper = GameObject.Instantiate <GameObject>(sniperPrefab.gameObject);

            interactableView = sniper.GetComponent <SniperView>();
            interactableView.SetController(this);
            interactableView.transform.position = nodePos;
        }
Esempio n. 2
0
        public BoneController(Vector3 nodePos, InteractableManager interactableManager, InteractableView bonePrefab)
        {
            this.interactableManager = interactableManager;
            GameObject bone = GameObject.Instantiate <GameObject>(bonePrefab.gameObject);

            interactableView = bone.GetComponent <BoneView>();
            interactableView.SetController(this);
            interactableView.transform.position = nodePos;
        }
Esempio n. 3
0
        public DualGunInteractableController(Vector3 nodePos, InteractableManager interactableManager
                                             , InteractableView dualGunPrefab)
        {
            this.interactableManager = interactableManager;
            GameObject dualGun = GameObject.Instantiate <GameObject>(dualGunPrefab.gameObject);

            interactableView = dualGun.GetComponent <DualGunInteractableView>();
            interactableView.transform.position = nodePos;
        }
Esempio n. 4
0
        public AmbushPlantController(Vector3 nodePos, InteractableManager interactableManager, InteractableView ambushPlantPrefab)
        {
            this.interactableManager = interactableManager;
            GameObject anbushPlant = GameObject.Instantiate <GameObject>(ambushPlantPrefab.gameObject);

            interactableView = anbushPlant.GetComponent <AmbushPlantView>();
            interactableView.SetController(this);
            interactableView.transform.position = nodePos;
        }
        public RockInteractableController(Vector3 nodePos, InteractableManager interactableManager, InteractableView rockPrefab)
        {
            this.interactableManager = interactableManager;
            GameObject rock = GameObject.Instantiate <GameObject>(rockPrefab.gameObject);

            interactableView = rock.GetComponent <RockInteractableView>();
            interactableView.SetController(this);
            interactableView.transform.position = nodePos;
        }
Esempio n. 6
0
        public KeyController(Vector3 nodePos, InteractableManager interactableManager, InteractableView keyPrefab, KeyTypes keyType)
        {
            this.interactableManager = interactableManager;
            this.keyType             = keyType;
            GameObject key = GameObject.Instantiate <GameObject>(keyPrefab.gameObject);

            interactableView = key.GetComponent <KeyView>();
            interactableView.SetController(this);
            interactableView.transform.position = nodePos;
        }
Esempio n. 7
0
        public GuardUniformController(Vector3 nodePos, InteractableManager interactableManager
                                      , InteractableView guardUniformPrefab, EnemyType enemyType)
        {
            this.currentEnemyType    = enemyType;
            this.interactableManager = interactableManager;
            GameObject guardUniform = GameObject.Instantiate <GameObject>(guardUniformPrefab.gameObject);

            interactableView = guardUniform.GetComponent <GuardUniformView>();
            interactableView.SetController(this);
            interactableView.transform.position = nodePos;
        }
Esempio n. 8
0
 public InteractableFactory(InteractableManager interactableManager)
 {
     this.interactableManager = interactableManager;
 }