Пример #1
0
    // Start is called before the first frame update
    protected override void Awake()
    {
        base.Awake();
        acManager = GameObject.FindGameObjectWithTag("GameManager").GetComponent <ActionCountManager>();

        sr      = GetComponentInChildren <SpriteRenderer>();
        mat     = sr.material;
        impulse = GetComponent <CinemachineImpulseSource>();
    }
Пример #2
0
    // Start is called before the first frame update
    protected override void Awake()
    {
        base.Awake();
        acManager = GameObject.FindGameObjectWithTag("GameManager").GetComponent <ActionCountManager>();
        playerCon = player.GetComponent <PlayerController>();

        sr  = GetComponentInChildren <SpriteRenderer>();
        mat = sr.material;
    }