void Start() { currState = AppState.NONE; traAIni = (TranslationAndIntial)gameObject.GetComponent(typeof(TranslationAndIntial)); orienCont = (OrientationControl)gameObject.GetComponent(typeof(OrientationControl)); UIFObj = (UIFollowObject)objCenterIn2D.GetComponent(typeof(UIFollowObject)); }
void Awake() { currState = AppState.NONE; traAIni = (TranslationAndIntial)gameObject.GetComponent(typeof(TranslationAndIntial)); orienCont = (OrientationControl)gameObject.GetComponent(typeof(OrientationControl)); slidAR = (SlidARScript)gameObject.GetComponent(typeof(SlidARScript)); objectInitialOrientation = 0; UIFObj = (UIFollowObject)objCenterIn2D.GetComponent(typeof(UIFollowObject)); }