void Start() { rb = GetComponent <Rigidbody>(); im = GetComponent <InputManager2>(); rb.maxAngularVelocity = 1; initialSideStiffness = axleInfos[0].leftWheel.sidewaysFriction.stiffness; }
private void Start() { //Get UI controller uiController = transform.parent.GetChild(0).GetComponent <UIController>(); //Initial score display uiController.UpdateText(livesP1, livesP2); //Get input manager inputManager = GameObject.Find("Input Manager").GetComponent <InputManager2>(); }
private void Start() { gc = FindObjectOfType <GameControl>(); im = FindObjectOfType <InputManager2>(); au = FindObjectOfType <Audio>(); au.whiteLineHitSound = GetComponent <AudioSource>(); //au.redLineHitSound = GetComponent<AudioSource>(); //au.blackLineHitSound = GetComponent<AudioSource>(); }
private void Start() { resources = GetComponent <ResourceSystem>(); input = GameObject.FindGameObjectWithTag("Player").GetComponent <InputManager2>(); }
// Start is called before the first frame update void Start() { im = GetComponentInParent <InputManager2>(); LocalResetToWorldSpace(); }
//bool m_ShowingReverseView; private void Start() { player = GameObject.FindGameObjectWithTag("Player"); playerInput = player.GetComponent <InputManager2>(); }
void Initialize() { //Find the match manager script matchmanager = GameObject.FindGameObjectWithTag("matchmanager").GetComponent <matchmanager>(); inputManager = GameObject.Find("Input Manager").GetComponent <InputManager2>(); }
//public TouchManager instance; //#define void Awake() { instance = this; //instance.hitPlane.renderer.enabled = false; }