示例#1
0
    void Start()
    {
        AssignTarget();
        targetDistance = new EnemyTargetDistance(transform, target);

        Init();

        if (target != null)
        {
            StartCoroutine(Think());
        }
    }
示例#2
0
 void Awake()
 {
     physic         = GetComponent <SlugPhysics>();
     targetDistance = GetComponent <EnemyTargetDistance>();
     SpeedFactor    = 1.0f;
 }