public override void SetController(InteractableController interactableController) { this.keyController = (KeyController)interactableController; KeyTypes keyType = keyController.GetKeyType(); if (keyType == KeyTypes.BLUE) { rendrer.material.color = blue; } else if (keyType == KeyTypes.RED) { rendrer.material.color = red; } else if (keyType == KeyTypes.YELLOW) { rendrer.material.color = yellow; } }
public void RemoveInteractable(InteractableController interactableController) { foreach (int i in interactableControllers.Keys) { if (interactableController == interactableControllers[i]) { int key = interactableControllers .FirstOrDefault ( x => x.Value == interactableControllers[i] ).Key; interactableControllers.Remove(key); interactableController.Destroy(); interactableController = null; break; } } }
public override void SetController(InteractableController interactableController) { this.guardUniformController = (GuardUniformController)interactableController; switch (guardUniformController.GetEnemyType()) { case EnemyType.STATIC: _renderer.material.mainTexture = staticEnemy; break; case EnemyType.PATROLLING: _renderer.material.mainTexture = petrolEnemy; break; case EnemyType.ROTATING_KNIFE: _renderer.material.mainTexture = knifeEnemy; break; case EnemyType.SNIPER: break; case EnemyType.BIDIRECTIONAL: _renderer.material.mainTexture = biDirectionalEnemy; break; case EnemyType.DOGS: break; case EnemyType.CIRCULAR_COP: _renderer.material.mainTexture = circularEnemy; break; case EnemyType.GUARD_TORCH: break; case EnemyType.TARGET: break; default: break; } }
public override void SetController(InteractableController interactableController) { this.sniperController = (SniperController)interactableController; }
public override void SetController(InteractableController interactableController) { this.rockInteractableController = (RockInteractableController)interactableController; }
public override void SetController(InteractableController interactableController) { this.ambushPlanController = (AmbushPlantController)interactableController; }
public void AddInteractable(int nodeID, InteractableController interactableController) { interactableControllers.Add(nodeID, interactableController); }
public virtual void SetController(InteractableController interactableController) { }
public override void SetController(InteractableController interactableController) { this.boneInteractableController = (BoneController)interactableController; }