Example #1
0
    public void Initialize()
    {
        attack   = GetComponent <AttackBehaviour> ();
        target   = GetComponent <TargetBehaviour> ();
        movement = GetComponent <MovementBehaviour> ();
        evade    = GetComponent <EvadeBehaviour> ();

        individual = GetComponent <Individual> ();
    }
    // Use this for initialization
    void Start()
    {
        ship   = gameObject.GetComponent <Ship> ();
        team   = ship.GetTeam();
        bullet = Resources.Load <GameObject> ("Bullet");

        target = GetComponent <TargetBehaviour> ();
        evade  = GetComponent <EvadeBehaviour> ();
    }
 // Use this for initialization
 void Start()
 {
     target = GetComponent <TargetBehaviour> ();
     evade  = GetComponent <EvadeBehaviour> ();
 }