// 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>(); }
void Start() { stat = GetComponent <PlayerStats>(); dismantle = GetComponent <TrapDismantle>(); }