Example #1
0
 private void Start()
 {
     gem.StartListening("UpdateMoney", UpdateMoney);
     gem.StartListening("EscapeWithMoney", Escape);
     gem.StartListening("RobberEnteredSpawnArea", TrackRobber);
     gem.StartListening("Death", RemoveRobber);
 }
Example #2
0
 void Start()
 {
     gem.StartListening("Unlock", BeginUnlocking);
     gem.StartListening("Move", StopUnlocking);
     gem.StartListening("Shot", StopUnlocking);
     gem.StartListening("Death", StopUnlocking);
 }
 private void Start()
 {
     gem.StartListening("Explode", Died);
     gem.StartListening("HooliganDie", Died);
     gem.StartListening("RobotBreak", RemoveTarget);
     gem.StartListening("PickUp", RemoveTarget);
 }
Example #4
0
    private void Start()
    {
        playerAudio = GetComponent <AudioSource>();
        gem.StartListening("AddMoneyToRobber", AddMoney);
        gem.StartListening("Death", DropMoney);

        particleSystem = moneyPS.GetComponent <ParticleSystem>();
    }
 protected void Start()
 {
     gem.StartListening("Attack", Attacked);
     gem.StartListening("HooliganDie", LoseTarget);
     gem.StartListening("RobotBreak", Break);
     gem.StartListening("PickUp", PickedUp);
     gem.StartListening("PutDown", PutDown);
     turnFixed   = GetComponent <TurnedFixed>();
     boxCollider = GetComponent <BoxCollider>();
 }
    private void Awake()
    {
        List <MonoBehaviour> deps = new List <MonoBehaviour>
        {
            (gem = FindObjectOfType(typeof(GlobalEventManager)) as GlobalEventManager),
        };

        if (deps.Contains(null))
        {
            throw new Exception("Could not find dependency");
        }
        gem.StartListening("StartGame", ShowText);
        gem.StartListening("LostGame", HideText);
    }
Example #7
0
    private void Awake()
    {
        List <MonoBehaviour> deps = new List <MonoBehaviour>
        {
            (gem = FindObjectOfType(typeof(GlobalEventManager)) as GlobalEventManager),
        };

        if (deps.Contains(null))
        {
            throw new Exception("Could not find dependency");
        }
        money = StaticMoney.GetMoneyCount();
        UpdateMoneyText();
        gem.StartListening("SetSelectionMoney", UpdateMoney);
        gem.StartListening("StartGame", HideText);
        gem.StartListening("LostGame", Destroy);
    }
Example #8
0
    private void Awake()
    {
        List <MonoBehaviour> deps = new List <MonoBehaviour>
        {
            (gem = FindObjectOfType(typeof(GlobalEventManager)) as GlobalEventManager),
        };

        if (deps.Contains(null))
        {
            throw new Exception("Could not find dependency");
        }
        priceText = GetComponent <TextMeshProUGUI>();
        gem.StartListening(string.Format("Update{0}RobberCost", robberType), UpdateCost);
    }
Example #9
0
 void Awake()
 {
     GlobalEventManager.StartListening(PlayerGlobalEvents.OnPlayerUpdateCurrentHealth, new UnityAction <ParamsObject>(OnPlayerUpdateCurrentHealth));
     GlobalEventManager.StartListening(PlayerGlobalEvents.OnPlayerUpdateMaxHealth, new UnityAction <ParamsObject>(OnPlayerUpdateMaxHealth));
 }
 private void Start()
 {
     gem.StartListening("HooliganDie", Died);
 }
Example #11
0
 private void Start()
 {
     gem.StartListening("Move", Move);
     gem.StartListening("Death", PreventFurtherMovement);
     animator = GetComponent <Animator>();
 }
Example #12
0
 private void Start()
 {
     gem.StartListening("AddMoneyToRobber", AddMoney);
     gem.StartListening("KeyCardStolen", KeyCardStolen);
     gem.StartListening("Death", DropMoney);
 }
Example #13
0
 private void Start()
 {
     gem.StartListening("RobbersSelected", RobbersSelected);
     gem.StartListening("Death", SpawnNextRobber);
 }
Example #14
0
 void Start()
 {
     gem.StartListening("Shot", TakeDamage);
 }
Example #15
0
 private void Start()
 {
     gem.StartListening("UpdateCamera", UpdateCamera);
     gem.StartListening("RobberEnteredRoom", UpdateRobberLocation);
 }
Example #16
0
 private void Start()
 {
     gem.StartListening("Death", RemoveRobber);
 }
 private void Start()
 {
     gem.StartListening("Attack", Attacked);
     gem.StartListening("Explode", Exploded);
 }
Example #18
0
 private void Start()
 {
     gem.StartListening("Death", LeaveCorpseBehind);
 }
 private void Start()
 {
     gem.StartListening("Attack", Attacked);
 }
 private void Start()
 {
     gem.StartListening("Stop", Stopped);
 }
Example #21
0
 // Start is called before the first frame update
 void Start()
 {
     vaultAudio = GetComponent <AudioSource>();
     gem.StartListening("BeginUnlocking", BeginCracking);
     gem.StartListening("StopUnlocking", StopCracking);
 }
 private void Start()
 {
     gem.StartListening("StartGame", StartGame);
 }
Example #23
0
 private void Start()
 {
     gem.StartListening("GrabbedRobot", Grabbed);
     gem.StartListening("Explode", Exploded);
 }
 // Start is called before the first frame update
 protected void Start()
 {
     guardAudio = GetComponent <AudioSource>();
     gem.StartListening("Death", CheckIfTargetIsDead);
     animator = GetComponent <Animator>();
 }
Example #25
0
 void Start()
 {
     gem.StartListening("Attack", Attacked);
     turnFixed   = GetComponent <TurnedFixed>();
     boxCollider = GetComponent <BoxCollider>();
 }
Example #26
0
 void Start()
 {
     gem.StartListening("RobotBreak", Break);
 }
Example #27
0
 // Start is called before the first frame update
 void Start()
 {
     gem.StartListening("BeginUnlocking", BeginCracking);
     gem.StartListening("StopUnlocking", StopCracking);
     finalRotation = transform.rotation.y - 90f;
 }