Пример #1
0
    void OnTriggerEnter(Collider collider)
    {
        if (collider.tag == "Scout" && collider.GetComponent <ScoutController>().isScouting == false)
        {
            ScoutController sc = collider.GetComponent <ScoutController>();

            // Set value of where player was found
            playerLastKnownPosition = sc.playerFoundPosition;
            //Debug.Log(playerLastKnownPosition);

            sc.isScouting = true;
            //playerLastKnownPosition = sc.playerFoundPosition;
            squadBehavour.FoundPlayer(playerLastKnownPosition);
        }
    }
Пример #2
0
 public void Create()
 {
     _repository = new Mock <IScoutData>();
     _controller = new ScoutController(_repository.Object);
 }