Example #1
0
 public Druid(Player p) : base()
 {
     health    = 30;
     maxHealth = 30;
     attack    = 0;
     className = "druid";
     heroPower = new Shapeshift(p);
     weapon    = null;
     armor     = 0;
     player    = p;
 }
Example #2
0
    void Start()
    {
        rigidBody = GetComponent <Rigidbody2D>();
        sprite    = GetComponent <SpriteRenderer>();

        teleportTo = GameObject.Find("LimboPosition");
        Player     = GameObject.Find("Player");
        if (Shapeshift == null)
        {
            Shapeshift = Player.GetComponent <Shapeshift>();
        }
    }
Example #3
0
    protected virtual void Awake()
    {
        _hitboxColliderLayer = LayerMask.NameToLayer("HitboxCollider");
        _attackColliderLayer = LayerMask.NameToLayer("AttackCollider");

        _movable  = GetComponent <Movable>();
        _animator = GetComponent <Animator>();

        health      = _healthConfig.maxHealth;
        _shapeshift = GetComponent <Shapeshift>();

        _stateLayers = new AnimatorStateLayers(_animator);
    }