コード例 #1
0
 // Use this for initialization
 void Start()
 {
     x = this.transform.position.x;
     Invoke("moverDireita", 3);
     //camera = GameObject.Find("MainCamera").GetComponent<Camera>();
     pLayerController = GameObject.Find("Player").GetComponent <PLayerController>();
 }
コード例 #2
0
ファイル: ManagerLevel.cs プロジェクト: lqt1912/Jumping-Game
 void Start()
 {
     player = FindObjectOfType <PLayerController>();
 }
コード例 #3
0
    // public GameObject obj;

    void Start()
    {
        //criou = false;
        camera           = GameObject.FindGameObjectWithTag("MainCamera");
        pLayerController = GameObject.Find("Player").GetComponent <PLayerController>();
    }
コード例 #4
0
    // Use this for initialization
    void Start()
    {
        player = FindObjectOfType <PLayerController> ();

        healthManager = FindObjectOfType <HealthManager> ();
    }
コード例 #5
0
ファイル: PLayerInput.cs プロジェクト: sergiurusinac/ZIDARII
 void Awake()
 {
     playerController = GetComponent <PLayerController>();
 }