Пример #1
0
        public static FollowPlayer Instance(Player player)
        {
            var key = player;
            FollowPlayer ret;

            if (!instances.TryGetValue(key, out ret))
                ret = instances[key] = new FollowPlayer();
            return ret;
        }
Пример #2
0
        public static FollowPlayer Instance(Player player)
        {
            var          key = player;
            FollowPlayer ret;

            if (!instances.TryGetValue(key, out ret))
            {
                ret = instances[key] = new FollowPlayer();
            }
            return(ret);
        }