This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "pch.h" | |
#include <iostream> | |
// Implement "reverse" to reverse the passed string in-place. | |
void reverse(char *string) | |
{ | |
int length = strlen(string); // cache string length | |
int j = 0; // first to last increment | |
// loop over string elements, last to first |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//usage: Set Camera to Orthographic and use CameraInfluence.AddInfluence(gameObject,influence); | |
//permanent interest points such as onscreen players should have influence set to 0.5f | |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using Unity.VisualScripting; | |
public class CameraInfluence : MonoBehaviour | |
{ |