コード例 #1
0
ファイル: BaseAI.cs プロジェクト: cburchet/CaptureTheFlag
 // Use this for initialization
 void Awake()
 {
     cam         = GetComponent <Camera>();
     metal       = 100;
     wood        = 100;
     rope        = 250;
     agent       = GetComponent <UnityEngine.AI.NavMeshAgent>();
     health      = 100;
     flagManager = GetComponent <FlagManager>();
     dismantler  = GetComponent <TrapDismantle>();
 }
コード例 #2
0
 void Start()
 {
     stat      = GetComponent <PlayerStats>();
     dismantle = GetComponent <TrapDismantle>();
 }