Ejemplo n.º 1
0
 private void Start()
 {
     _playerHead    = PlayerVirusHead.Singletone;
     _increseSpeed  = TemporaryData.SplashIncreaseSpeed;
     _splashFab     = splash[TemporaryData.CurrentSplashColorNumber];
     bar.fillAmount = 0;
 }
Ejemplo n.º 2
0
    private void Start()
    {
        playerHead = PlayerVirusHead.Singletone;

        _boostedSpeed = TemporaryData.VirusBoostedSpeed;

        _increaseSpeed = TemporaryData.BoostIncreaseSpeed;
        _decreaseSpeed = TemporaryData.BoostDecreaseSpeed;
        bar.fillAmount = 0;
    }
Ejemplo n.º 3
0
    internal override void Awake()
    {
        base.Awake();

        Singletone = this;

        BodySprite            = TemporaryData.PlayerBodySprite;
        SpriteRenderer.sprite = TemporaryData.PlayerHeadSprite;
        gameObject.name       = TemporaryData.PlayerNickName;
    }
Ejemplo n.º 4
0
 private void Awake()
 {
     _playerHead = GetComponent <PlayerVirusHead>();
     gameObject.GetComponent <SpriteRenderer>().color = Colors[_colorCounter];
     _playerHead.OnNewTail += ChangeTailColor;
 }