public SearchBotFoundState(SearchBotSM searchBotSM, Material eyeMat,
                            AudioClip foundSound, AudioSource audioSource)
 {
     _searchBotSM = searchBotSM;
     _eyeMat      = eyeMat;
     _foundSound  = foundSound;
     _audioSource = audioSource;
 }
 // if we need specific components we should send them through the constructor
 public SearchBotSearchState(SearchBotSM searchBotSM, Material eyeMat, Rigidbody rb)
 {
     _searchBotSM = searchBotSM;
     _eyeMat      = eyeMat;
     _rb          = rb;
 }
示例#3
0
 public SearchBotIdleState(SearchBotSM searchBotSM, Material eyeMat, TargetAssigner targetAssigner)
 {
     _searchBotSM    = searchBotSM;
     _eyeMat         = eyeMat;
     _targetAssigner = targetAssigner;
 }