Esempio n. 1
0
        public List <BetaBunny> GetFollowersOfFollower(BetaBunny betaBunny)
        {
            var list = new List <BetaBunny>();

            for (int i = followers.IndexOf(betaBunny) + 1; i < followers.Count; i++)
            {
                list.Add(followers[i]);
            }
            return(list);
        }
Esempio n. 2
0
        public void AddFollower(BetaBunny betaBunny)
        {
            if (followers.Count == 0)
            {
                betaBunny.ai.entity_toFollow = this;
            }
            else
            {
                betaBunny.ai.entity_toFollow = followers[followers.Count - 1];
            }

            betaBunny.SetState(CmpAI_Follower.STATE_CmpAI_Follower.Following);

            followers.Add(betaBunny);

            betaBunny.ai.StoppedFollowing += RemoveFollower;
        }