public override void OnStartLocalPlayer() { base.OnStartLocalPlayer(); hmd = GameObject.FindGameObjectWithTag("MainCamera"); alignmentClient = GetComponent <AlignmentClient>(); EventAnnouncer.GetTaggedInstance().SetCurrentPlayer(this.gameObject); }
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!"); } }
public void RandomJump(EventAnnouncer p) { playerState = PlayerState.randomJump; StartCoroutine("OnRandomJump"); Debug.Log("RANDOM JUMP"); }
void ParalyzeOff(EventAnnouncer p) { control.enabled = true; anim.SetBool("paralyzed", false); //Debug.Log("RECOVERED"); }
void ParalyzeOn(EventAnnouncer e) { control.enabled = false; anim.SetBool("paralyzed", true); //Debug.Log("PARALYZED"); }
void Shrinking(EventAnnouncer p) { transform.localScale = originScale; Debug.Log("Enemy shrinking!!"); }
void Growing(EventAnnouncer p) { transform.localScale = growScale; Debug.Log("Enemy Growing!!"); }