void Awake()
        {
            Rigidbody            = GetComponent <Rigidbody>();
            m_Inputs             = GetComponents <IInput>();
            suspensionNeutralPos = SuspensionBody.transform.localPosition;
            suspensionNeutralRot = SuspensionBody.transform.localRotation;
            collisionManager     = GetComponent <KartCollisionManager>();

            if (photonView.IsMine)
            {
                photonView.RPC("setName", RpcTarget.All, LobbyManager.userEmail);
            }
        }
 void Start()
 {
     collisionManager = GetComponent <KartCollisionManager>();
     rb         = GetComponent <Rigidbody>();
     beforeMass = rb.mass;
 }
Exemple #3
0
 // Start is called before the first frame update
 void Start()
 {
     collisionManager = GetComponent <KartCollisionManager>();
 }