コード例 #1
0
 public void CopyPlaybackParams(PointCachePlayer source)
 {
     for (int i = 0; i < 8; i++)
     {
         Clips[i].NormalizedTime    = source.Clips[i].NormalizedTime;
         Clips[i].Weight            = source.Clips[i].Weight;
         Clips[i].AutoPlaybackType  = source.Clips[i].AutoPlaybackType;
         Clips[i].DurationInSeconds = source.Clips[i].DurationInSeconds;
     }
 }
コード例 #2
0
        public GameObject CreatePlayer()
        {
            GameObject go = new GameObject(string.Format("{0} Point Cache Player", this.name));

            go.AddComponent <SkinnedMeshRenderer>();
            PointCachePlayer player = go.AddComponent <PointCachePlayer>();

            player.pointCache = this;
            player.Init();
            return(go);
        }