private void OnValidate() { s_instance = this; skillFxNode = skillFxNode ? skillFxNode : GameObject.Find("SkillFx"); modelFxNode = modelFxNode ? modelFxNode : GameObject.Find("ModelFx"); sceneFxNode = sceneFxNode ? sceneFxNode : GameObject.Find("SceneFx"); uiFxNode = uiFxNode ? uiFxNode : GameObject.Find("UIFx"); }
private void Awake() { s_instance = this; }