Ejemplo n.º 1
0
Archivo: Player.cs Proyecto: Iilun/IC06
 public void InstantiateCeleb(PlayerInfos infos, bool front, float x_offset)
 {
     GetMAnimator();
     controls = infos.GetControls();
     if (front)
     {
         boat = WinnerTime.GetFront();
         this.HasWon(x_offset >= 0 ? 1 : 0);
     }
     else
     {
         boat = WinnerTime.GetBack();
         this.HasLost(x_offset >= 0 ? 1 : 0);
     }
     this.gameObject.transform.position = boat.gameObject.transform.position + new Vector3(x_offset, 0, 0);
     infos.GetModelInfos().SetModelToModelParameters(this.gameObject);
     SetIsInteracting(true);
     transform.localScale = new Vector3(3, 3, 3);
     gameObject.GetComponent <Rigidbody>().isKinematic = true;
 }
Ejemplo n.º 2
0
 void Awake()
 {
     instance = this;
     StartWinnerPhase(VariablesGlobales.winnerId);
 }