public override void SetMethod(The_Object_Behaviour myTransform)
    {
        base.SetMethod(myTransform);

        _MyObject    = myTransform;
        _MyTransform = myTransform._TheObject;

        _TargetTransform = myTransform._TheTarget;
    }
    public override void SetMethod(The_Object_Behaviour myInfo)
    {
        _MyObject = myInfo;

        for (int i = 0; i < Movement.Length; i++)
        {
            Movement [i].SetMethod(myInfo);
        }
    }
    public override void SetMethod(The_Object_Behaviour myInfo)
    {
        base.SetMethod(myInfo);
        _MyObject          = myInfo;
        _MyAnimator        = _MyObject.MyAnimator;
        _AnimatorVariables = _MyObject.AnimatorVariables;

        _CurrentDirection     = _MyObject.ObjectCurrentVector;
        _CurrentDirection[0] += Vector3.zero;         //TODO just to remove unity warning
    }
    public override void SetMethod(The_Object_Behaviour myTransform)
    {
        _MyObject       = myTransform;
        MyRotation      = _MyObject.MyAnimator.transform;
        MoveDirection   = _MyObject.GetMovementVector();
        RotateDirection = _MyObject.GetRotationVector();

        _CurrentDirection  = myTransform.ObjectCurrentVector;
        _TargetDirection   = myTransform.ObjectTargetVector;
        _AnimatorVariables = _MyObject.AnimatorVariables;
    }
Exemplo n.º 5
0
    public override void SetMethod(The_Object_Behaviour myTransform)
    {
        base.SetMethod(myTransform);

        _MyObject    = myTransform;
        _MyTransform = myTransform._TheObject;

        _TargetTransform = myTransform._TheTarget;

        _TheTime = _MyObject.GetTheTime();


        _TheNodePath = _MyObject._PersonalNodeMap.GetNodeList();
        _Nodesindex  = _MyObject._PersonalNodeMap.GetNodeindex();

        _TheRoomPath = _MyObject._CreateThePath.GetListRef();
        _Roomsindex  = _MyObject._CreateThePath.GetListindexref();
    }
    public override void SetMethod(GameManagerTestingWhileWaiting.SpellAttackInfo SpellInfo, The_Object_Behaviour MySender)
    {
        base.SetMethod(SpellInfo, MySender);

//		TargetVector = _Shooter.ObjectCurrentVector[0];
    }
 public override void SetMethod(GameManagerTestingWhileWaiting.SpellAttackInfo SpellInfo, The_Object_Behaviour MySender)
 {
     base.SetMethod(SpellInfo, MySender);
     _CurrentDirection = _Shooter.ObjectCurrentVector;
     transform.parent  = _Shooter._MyTransform.transform;
     Saver             = transform.eulerAngles;
     RotateSpeed       = RotateSpeed / 100;
     StartTime         = _Shooter.TheTime [0] + TimeToFly;
 }
 /// <summary>
 /// This Is Called In Start(){} When The Object Is Created
 /// </summary>
 public virtual void SetMethod(The_Object_Behaviour myTransform)
 {
 }
Exemplo n.º 9
0
 public override void SetMethod(The_Object_Behaviour myTransform)
 {
     _MyObject        = myTransform;
     _MyTransform     = _MyObject._MyTransform;
     _TargetTransform = _MyObject._TheTarget.transform;
 }
Exemplo n.º 10
0
    public override void SetMethod(GameManagerTestingWhileWaiting.SpellAttackInfo SpellInfo, The_Object_Behaviour MySender)
    {
        base.SetMethod(SpellInfo, MySender);

        //	TargetVector = transform.position + _Shooter.ObjectCurrentVector [0];

        transform.parent = _Shooter._MyTransform.transform;
    }
//	Collider2D TheCol;

    public override void SetMethod(The_Object_Behaviour myTransform)
    {
        myTransform.SetCollisionRequirements(this);
    }
Exemplo n.º 12
0
    public override void SetMethod(GameManagerTestingWhileWaiting.SpellAttackInfo SpellInfo, The_Object_Behaviour MySender)
    {
        base.SetMethod(SpellInfo, MySender);

        _SpellInfo           = SpellInfo;
        _ImTheShooter        = _Shooter._TheObject.gameObject;
        _TargetStartPosition = _Shooter._TheTarget.transform.position;
        _MyStartPosition     = transform.position;
        _MyShootingDirection = (_TargetStartPosition - _MyStartPosition).normalized;

        if (RotateToTargetInStart)
        {
            Rotations();
        }
    }
    public override void SetMethod(GameManagerTestingWhileWaiting.SpellAttackInfo SpellInfo, The_Object_Behaviour MySender)
    {
        base.SetMethod(SpellInfo, MySender);


        TargetVector = transform.position + _Shooter.ObjectCurrentVector [0];

        _Shooter.MyAnimator.SetBool(_Shooter.MyAnimator.GetComponent <TheAnimator> ().AnimatorVariables [3], false);
    }
Exemplo n.º 14
0
 public virtual void SetMethod(GameManagerTestingWhileWaiting.SpellAttackInfo SpellInfo, The_Object_Behaviour MySender)      //Outdated, Only There Cuz Of I Have To Clean Up Alot Of Old Stuff. TODO
 {
     _SpellInfo = SpellInfo;
     _Shooter   = MySender;
 }
Exemplo n.º 15
0
    public override void SetMethod(GameManagerTestingWhileWaiting.SpellAttackInfo SpellInfo, The_Object_Behaviour MySender)
    {
        base.SetMethod(SpellInfo, MySender);

        //	EggHealth = new EnemyWordChecker(MyText, this);

        if (_Shooter.MyAnimator.transform.eulerAngles.y == 0)
        {
            transform.position = (Quaternion.AngleAxis(_Shooter.MyAnimator.transform.eulerAngles.z, Vector3.forward) * _SpellInfo.AttackPosition) + MySender._MyTransform.position;
        }
        else
        {
            transform.position = (Quaternion.AngleAxis(_Shooter.MyAnimator.transform.eulerAngles.z, Vector3.back) * _SpellInfo.AttackPosition) + MySender._MyTransform.position;
        }
        transform.rotation = Quaternion.Euler(_Shooter.MyAnimator.transform.eulerAngles);
    }
Exemplo n.º 16
0
 public override void SetMethod(The_Object_Behaviour myTransform)
 {
 }
 public override void SetMethod(GameManagerTestingWhileWaiting.SpellAttackInfo SpellInfo, The_Object_Behaviour MySender)
 {
     base.SetMethod(SpellInfo, MySender);
     _Targets = GameObject.FindGameObjectsWithTag("Player1");
     for (int i = 0; i < _Targets.Length; i++)
     {
         _Targets [i].GetComponent <PlayerManager> ().MovementSpeedChange(MovementDecrease);
     }
 }