// Use this for initialization
	void Start () {
        PPS = (ProjectilePoolingSystem)GetComponent(typeof(ProjectilePoolingSystem));
        attributes = (AttributeComponent)GetComponent(typeof(AttributeComponent));
        movement = (CharacterMovement)GetComponent(typeof(CharacterMovement));
        anim = (Animator)GetComponent(typeof(Animator));
        shotAnimationReady = false;
	}
 // Use this for initialization
 void Start()
 {
     PPS                = (ProjectilePoolingSystem)GetComponent(typeof(ProjectilePoolingSystem));
     attributes         = (AttributeComponent)GetComponent(typeof(AttributeComponent));
     movement           = (CharacterMovement)GetComponent(typeof(CharacterMovement));
     anim               = (Animator)GetComponent(typeof(Animator));
     shotAnimationReady = false;
 }
	public void setOwner(GameObject owner)
	{
		this.owner = owner;
		PPS = (ProjectilePoolingSystem) owner.GetComponent(typeof(ProjectilePoolingSystem));
	}
Пример #4
0
 public void setOwner(GameObject owner)
 {
     this.owner = owner;
     PPS        = (ProjectilePoolingSystem)owner.GetComponent(typeof(ProjectilePoolingSystem));
 }