protected void Start()
    {
        resource   = GetComponent <EnergyController>();
        input      = GetComponentInChildren <InputManagerBase>();
        animator   = GetComponent <Animator>();
        movement   = GetComponent <PlayerMovement>();
        body       = GetComponent <Rigidbody2D>();
        indicators = GetComponentInChildren <CharacterUiIndicator>();

        //InitDagger();
    }
 private void Start()
 {
     indicator = GetComponentInParent <CharacterUiIndicator>();
 }
 public override void Init()
 {
     indicator = controller.GetComponentInChildren <CharacterUiIndicator>();
 }
示例#4
0
 public override void Init()
 {
     base.Init();
     indicator = controller.GetComponentInChildren <CharacterUiIndicator>();
     Debug.Assert(indicator);
 }