예제 #1
0
 protected void Start()
 {
     _mobAttributesMono = GetComponents <MobAttributesMono>()[1];
     Destination        = transform.position;
     _prevLocation      = transform.position;
     _mobModifierRpc    = MobModifierRpcServer.Instance;
     _mapPlatform       = MapPlatform.Instance;
 }
예제 #2
0
 protected void Start()
 {
     Animator                = transform.parent.gameObject.GetComponentInChildren <Animator>();
     MobAttributesMono       = transform.parent.gameObject.GetComponents <MobAttributesMono>()[1];
     ParentTransform         = transform.parent.transform;
     DeathAnimationStopwatch = new Stopwatch();
     DeadStopwatch           = new Stopwatch();
     SpriteMaterial          = transform.parent.GetComponentInChildren <Animator>()
                               .transform.gameObject.GetComponent <SpriteRenderer>().material;
     DeathAnimationStopwatch.Stop();
     DeathAnimationStopwatch.Reset();
     DeadStopwatch.Stop();
     DeadStopwatch.Reset();
     RTS_Camera.CameraDictionary.TryGetValue(CameraName, out Camera);
 }