private void Awake()
    {
        _AfterImageHandler = FindObjectOfType <AfterImageHandler>();
        TryGetComponent(out _PlayerPhysics);
        TryGetComponent(out _PlayerMaterials);

        // We can dash from the start, this should be handled by other behaviour that grants the player
        // the ability to dash after completing a task.
        canDash = true;

        // Starts with disabled trails.
        SetActiveTrails(false);
    }
示例#2
0
 private void Awake()
 {
     _AfterImageHandler = FindObjectOfType <AfterImageHandler>();
     _AfterImageHandler.AddAfterImageGroup(this);
 }