コード例 #1
0
 // Use this for initialization
 void Start()
 {
     bod1 = player1.gameObject.GetComponent <Rigidbody>();
     bod2 = player2.gameObject.GetComponent <Rigidbody>();
     p1   = player1.GetComponent <nonCharacterControllerMovement>();
     p2   = player2.GetComponent <nonCharacterControllerMovement>();
 }
コード例 #2
0
ファイル: swingManager.cs プロジェクト: tomasmed/EECS499
	// Use this for initialization
	void Start () {
        bod1 = player1.gameObject.GetComponent<Rigidbody>();
        bod2 = player2.gameObject.GetComponent<Rigidbody>();
        p1 = player1.GetComponent<nonCharacterControllerMovement>();
        p2 = player2.GetComponent<nonCharacterControllerMovement>();
    }