コード例 #1
0
ファイル: WeaponGatling.cs プロジェクト: piranha771/tdp
    // Use this for initialization
    void Start()
    {
        npc = null;
        GameObject gameController = GameObject.Find("GameController");
        prefabSource = gameController.GetComponent<PrefabSource>();
        gatlingControll = transform.GetComponentInChildren<GatlingControll>();
        shootNPC = transform.parent.GetComponent<NPCShooter>();

        startRotation = transform.rotation;
    }
コード例 #2
0
ファイル: SingleBurrel.cs プロジェクト: piranha771/tdp
 // Use this for initialization
 void Start()
 {
     GameObject gameController = GameObject.Find("GameController");
     prefabSource = gameController.GetComponent<PrefabSource>();
     startRotation = transform.rotation;
 }