Beispiel #1
0
        private void OnTriggerEnter(Collider other)
        {
            PickerAI ai = other.GetComponent <PickerAI>();

            if (!ai)
            {
                return;
            }

            gameObject.SetActive(false);
            ai.currentTarget = null;

            currentTime = 0.0f;
        }
 public AIMovePattern(PatternData data, PickerAI ai) : base(data)
 {
     this.ai   = ai;
     rigidbody = ai.GetComponent <Rigidbody>();
 }
 public AIIdlePattern(PatternData data, PickerAI ai) : base(data)
 {
     this.ai = ai;
 }
 public AISearchPattern(PatternData data,PickerAI ai)
     : base(data)
 {
     this.ai = ai;
 }