Exemplo n.º 1
0
 void Awake()
 {
     rb2d      = GetComponent <Rigidbody2D>();
     bc2d      = GetComponent <BoxCollider2D>();
     sprSwitch = GetComponent <SpriteSwitcher>();
     camFollow = Camera.main.GetComponent <CameraFollow>();
 }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        player         = GameObject.Find("PlayerCharacter").GetComponent <PlayerCharacterController>();
        switcher       = this.transform.FindChild("SizeIcon").gameObject.GetComponent <SpriteSwitcher>();
        iconOverFrame  = GameObject.Find("SizeIconOverFrame").GetComponent <Image>();
        m_iconImage    = GameObject.Find("SizeIcon").GetComponent <Image>();
        m_characterNum = (int)SceneData.characterSelect;

        HealthStateEnterProcess();
    }
 // Use this for initialization
 void Start()
 {
     fullTextBox         = GameObject.Find("FullTextBox").GetComponent <Text>();
     portraitTextBox     = GameObject.Find("PortraitTextBox").GetComponent <Text>();
     portraitMetadataBox = GameObject.Find("PortraitMetadataBox").GetComponent <Text>();
     portrait            = GameObject.Find("Portrait").GetComponent <Image>();
     commLightSwitcher   = GameObject.Find("CommsLight").GetComponent <SpriteSwitcher>();
     console             = GameObject.Find("ConsoleControlsCanvas").GetComponent <ConsoleController>();
     portraitController  = GetComponentInChildren <PortraitController>();
     portraitAnimation   = GetComponentInChildren <PortraitAnimationControl>();
     EndDialogue();
     UpdateTextDisplay();
 }
Exemplo n.º 4
0
 void Start()
 {
     controller = GameObject.Find("TextCanvas").GetComponent <TextBoxController>();
     if (hasText)
     {
         transmission = Transmission.ParseMessageText(textAsset.text);
     }
     if (hasAudio)
     {
         audioSource = GetComponent <AudioSource>();
     }
     circleCollider    = GetComponent <CircleCollider2D>();
     commLightSwitcher = GameObject.Find("CommsLight").GetComponent <SpriteSwitcher>();
     console           = GameObject.Find("ConsoleControlsCanvas").GetComponent <ConsoleController>();
     signalBar         = GameObject.Find("SignalBar").GetComponent <Image>();
 }