コード例 #1
0
 void Start()
 {
     rb = GetComponent <Rigidbody>();
     im = GetComponent <InputManager2>();
     rb.maxAngularVelocity = 1;
     initialSideStiffness  = axleInfos[0].leftWheel.sidewaysFriction.stiffness;
 }
コード例 #2
0
 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>();
 }
コード例 #3
0
    private void Start()
    {
        gc = FindObjectOfType <GameControl>();
        im = FindObjectOfType <InputManager2>();
        au = FindObjectOfType <Audio>();

        au.whiteLineHitSound = GetComponent <AudioSource>();
        //au.redLineHitSound = GetComponent<AudioSource>();
        //au.blackLineHitSound = GetComponent<AudioSource>();
    }
コード例 #4
0
 private void Start()
 {
     resources = GetComponent <ResourceSystem>();
     input     = GameObject.FindGameObjectWithTag("Player").GetComponent <InputManager2>();
 }
コード例 #5
0
    // Start is called before the first frame update
    void Start()
    {
        im = GetComponentInParent <InputManager2>();

        LocalResetToWorldSpace();
    }
コード例 #6
0
    //bool m_ShowingReverseView;

    private void Start()
    {
        player      = GameObject.FindGameObjectWithTag("Player");
        playerInput = player.GetComponent <InputManager2>();
    }
コード例 #7
0
 void Initialize()
 {
     //Find the match manager script
     matchmanager = GameObject.FindGameObjectWithTag("matchmanager").GetComponent <matchmanager>();
     inputManager = GameObject.Find("Input Manager").GetComponent <InputManager2>();
 }
コード例 #8
0
 //public TouchManager instance;
 //#define
 void Awake()
 {
     instance = this;
     //instance.hitPlane.renderer.enabled = false;
 }