Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     _originPosition  = transform.position;
     _moveSpeedOrigin = _moveSpeed;
     _shakeSystem     = FindObjectOfType <ShakeSystem>();
     _myRb            = GetComponent <Rigidbody2D>();
     _myTr            = transform;
     _myTr.tag        = TagComponent.TOMAHOK;
     _mySprite        = GetComponent <SpriteRenderer>();
     _myTrail         = GetComponentInChildren <TrailRenderer>();
     _backgroundColor = ColorTableComponent.Instance.BackgroundColorTable;
     Levels[0].SetActive(true);
     ResetTomahok();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Cache shake system.
 /// </summary>
 private void Awake()
 {
     _shakeSystem = GetComponent <ShakeSystem>();
 }