コード例 #1
0
    public static void AddGroup(FishGroup group)
    {
        if (fishGroups == null)
        {
            fishGroups = new List <FishGroup>();
        }

        if (!fishGroups.Contains(group))
        {
            fishGroups.Add(group);
        }
    }
コード例 #2
0
    private float speed = 0;    //初始速度(其实没用,本来打算鱼从速度0加速到移动速度moveSpeed)

    public void SetGroup(int index)
    {
        myGroup = FishGroup.GetFishGroup(index);
    }
コード例 #3
0
 public void OnEnable()
 {
     _group = target as FishGroup;
 }
コード例 #4
0
	public void OnEnable()
	{
		_group = target as FishGroup;
	}