Exemplo n.º 1
0
    protected override void Start()
    {
        base.Start();

        skillData = Resources.Load <SO_EMPCaltrop>("Scriptable Objects/Skills/Complementary/" + _owner.weightModule.prefix + GetSkillName() + _owner.weightModule.sufix) as SO_EMPCaltrop;

        LoadPrefabs();
    }
Exemplo n.º 2
0
    public DMM_EMPCaltrop Spawn(Vector3 spawnPos, Vector3 fwd, string emmitter, Action <DMM_EMPCaltrop> activationCallback, SO_EMPCaltrop data)
    {
        skillData = data;

        transform.position  = spawnPos;
        transform.forward   = fwd;
        gameObject.tag      = emmitter;
        _activationCallback = activationCallback;
        _lifeTime           = 0;

        //Test
        //_coll.isTrigger = true;

        return(this);
    }