Пример #1
0
    public override void OnStartLocalPlayer()
    {
        base.OnStartLocalPlayer();

        hmd             = GameObject.FindGameObjectWithTag("MainCamera");
        alignmentClient = GetComponent <AlignmentClient>();

        EventAnnouncer.GetTaggedInstance().SetCurrentPlayer(this.gameObject);
    }
Пример #2
0
 private void MinionSpawning(EventAnnouncer e)
 {
     posX = Random.Range(-20, 20);
     posY = 10;
     posZ = Random.Range(-20, 20);
     if (currentMinionCount < maxMinionCount)
     {
         minion = Instantiate(originalMinion, new Vector3(posX, posY, posZ), Quaternion.identity, enemyParent);
         minion.SetActive(true);
         currentMinionCount += 1;
         print("minion respawned!");
     }
 }
Пример #3
0
 public void RandomJump(EventAnnouncer p)
 {
     playerState = PlayerState.randomJump;
     StartCoroutine("OnRandomJump");
     Debug.Log("RANDOM JUMP");
 }
Пример #4
0
 void ParalyzeOff(EventAnnouncer p)
 {
     control.enabled = true;
     anim.SetBool("paralyzed", false);
     //Debug.Log("RECOVERED");
 }
Пример #5
0
 void ParalyzeOn(EventAnnouncer e)
 {
     control.enabled = false;
     anim.SetBool("paralyzed", true);
     //Debug.Log("PARALYZED");
 }
Пример #6
0
 void Shrinking(EventAnnouncer p)
 {
     transform.localScale = originScale;
     Debug.Log("Enemy shrinking!!");
 }
Пример #7
0
 void Growing(EventAnnouncer p)
 {
     transform.localScale = growScale;
     Debug.Log("Enemy Growing!!");
 }