예제 #1
0
 void Awake()
 {
     patrolAI         = GetComponent <PatrolAI>();
     equipmentManager = GetComponent <EquipmentManager>();
     omniSense        = GetComponent <OmniSense>();
     health           = GetComponent <Health>();
     teamID           = GetComponent <TeamID>();
     animatorScript   = GetComponentInChildren <FurbyAnimatorScript>();
     previousPosition = transform.position;
 }
예제 #2
0
	void Start()
	{
		health = GetComponent<Health> ();
		sense = GetComponent<OmniSense>();
		lastTarget = null;
		lastUsedEquipmentPiece = null;
		currentTarget = null;
		currentlyUsedEquipmentPiece = null;
		optimalDistanceToTarget = 0;
		maximalDistanceToTarget = 0;
	}
 void Start()
 {
     health                      = GetComponent <Health> ();
     sense                       = GetComponent <OmniSense>();
     lastTarget                  = null;
     lastUsedEquipmentPiece      = null;
     currentTarget               = null;
     currentlyUsedEquipmentPiece = null;
     optimalDistanceToTarget     = 0;
     maximalDistanceToTarget     = 0;
 }
예제 #4
0
    /**
     * Inicjalizacja po utworzeniu.
     * */
    void Start()
    {
        rightListMovement = true;
        targetResolve     = TargetResolveEnum.DONE;

        lastTargetLocation      = new Vector3(0, 0, 0);
        lastAgentLocationOnPath = new Vector3(0, 0, 0);

        if (patrolPoints == null)
        {
            patrolPoints = new List <Vector3>();
        }
        patrolPointsIndex = 0;

        navAgent    = GetComponent <NavMeshAgent>();
        health      = GetComponent <Health>();
        sense       = GetComponent <OmniSense>();
        equipmentAI = GetComponent <EquipmentAI> ();
    }
예제 #5
0
파일: PatrolAI.cs 프로젝트: Qawery/PGK
	/**
	 * Inicjalizacja po utworzeniu.
	 * */
	void Start() 
	{
		rightListMovement = true;
		targetResolve = TargetResolveEnum.DONE;

		lastTargetLocation = new Vector3(0, 0, 0);
		lastAgentLocationOnPath = new Vector3(0, 0, 0);

		if(patrolPoints == null)
		{
			patrolPoints = new List<Vector3>();
		}
		patrolPointsIndex = 0;

		navAgent = GetComponent<NavMeshAgent>();
		health = GetComponent<Health>();
		sense = GetComponent<OmniSense>();
		equipmentAI = GetComponent<EquipmentAI> ();
	}
예제 #6
0
파일: Follower.cs 프로젝트: Qawery/PGK
	void Start()
	{
		sense = GetComponent<OmniSense> ();
		patrolAI = GetComponent<PatrolAI> ();
		objectToFollow = null;
	}