public virtual void Initiate() { if (gameObject.GetComponent<ParagonAI.BaseScript>()) { baseScript = gameObject.GetComponent<ParagonAI.BaseScript>(); gunScript = baseScript.gunScript; soundScript = baseScript.audioScript; rotateToAimGunScript = baseScript.headLookScript; animationScript = baseScript.animationScript; coverFinderScript = baseScript.coverFinderScript; myTransform = baseScript.GetTranform(); layerMask = ParagonAI.ControllerScript.currentController.GetLayerMask(); agent = baseScript.GetAgent(); } }
public virtual void Initiate() { if (gameObject.GetComponent <ParagonAI.BaseScript>()) { baseScript = gameObject.GetComponent <ParagonAI.BaseScript>(); gunScript = baseScript.gunScript; soundScript = baseScript.audioScript; rotateToAimGunScript = baseScript.headLookScript; animationScript = baseScript.animationScript; coverFinderScript = baseScript.coverFinderScript; myTransform = baseScript.GetTranform(); layerMask = ParagonAI.ControllerScript.currentController.GetLayerMask(); agent = baseScript.GetAgent(); } }